package com.tcm.order.dao.mapper;


import com.tcm.order.entity.OrderDoctorBill;
import com.tcm.order.entity.OrderInviterBill;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface OrderInviterBillMapper {

    int insert(OrderInviterBill record);

    OrderInviterBill findById(Long id);

    int update(OrderInviterBill record);

    List<OrderDoctorBill> queryInviterBillPage(@Param("userPhone") String userPhone,
                                               @Param("target") String target,
                                               @Param("targetType") String targetType,
                                               @Param("page") Long page,
                                               @Param("pagesize") Long pagesize);

    int count(@Param("userPhone") String userPhone,
              @Param("target") String target,
              @Param("targetType") String targetType);

}